package com.shop.user;

import com.github.pagehelper.PageInfo;
import com.shop.user.pojo.User;
import com.shop.user.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * @ClassName: Test
 * @description：
 * @author：TanKai
 * @date：2021/7/23 10:25
 * @versions：v1.0
 */
public class  Test {
    public static void main(String[] args) {

        ApplicationContext context = new ClassPathXmlApplicationContext("applicationconfig.xml");
        UserService bean = context.getBean(UserService.class);
        PageInfo<User> page = bean.selectByFengYe("神", "", 1);
        page.getList().forEach(System.out::println);

    }}
